﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using GongXianDCUI.Models;

namespace GongXianDCUI.DAL
{
    public class FunctionsDAL
    {
        /// <summary>
        /// 查询菜单集合
        /// </summary>
        /// <returns></returns>
        public List<Funcitions> GetFuncitionsList(int? parentId)
        {
            return DB.Context.From<Funcitions>().Where(w => w.ParentId == parentId).OrderBy(Funcitions._.ShowNo.Asc).ToList();
        }

      

    }
}
